﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// RequestData 的摘要说明
/// </summary>
public class RequestData : DictionaryBase
{
    public string this[string key]  //索引器重载函数     
    {
        get
        {
            if (Dictionary.Contains(key))
            {
                return (Dictionary[key] != null) ? Dictionary[key].ToString().Trim() : "";
            }
            else
            {
                return "";
            }
        }
        set
        {
            Dictionary[key] = value;
        }
    }

    public void Add(string key, string value)  //添加类对象重载函数     
    {
        if (!string.IsNullOrEmpty(key))
        {
            Dictionary[key] = value;
        }
    }

    public void Remove(string key)  //移除类对象重载函数     
    {
        if (Dictionary.Contains(key))
        {
            Dictionary.Remove(key);
        }
    }
}
